﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="category.aspx.cs" Inherits="NKD07.category" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container">
        <div class="content-indent">
            <div id="vmMainPage">
                <div class="clear">
                    <h3 class="categoryName">
                        <asp:Label ID="lbCategoryName" runat="server"  Text='Magazine'></asp:Label>
                    </h3>
                </div>
                <div class="orderby_form">
                    <!-- ORDER BY .... FORM -->
                    Order by
                    <asp:DropDownList ID="ddlSortValue" runat="server" Height="25px" Width="180px" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlSortValue_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="0">Name product</asp:ListItem>
                        <asp:ListItem Value="1">Price</asp:ListItem>
                        <asp:ListItem Value="2">Date modified</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div id="product_list">
                    <!-- Product Begin-->
                    <div class="leftPosition odd" style="width: 100%;">
                        <div class="browse_1">
                            <asp:DataList ID="dtlProducts" runat="server">
                                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                                <ItemStyle  HorizontalAlign="Left" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <div class="bottom_separator" style="padding: 0 0 6px;">
                                        <div class="wrapper">
                                            <div class="floatElementR">
                                                <div class="browsePriceContainer">
                                                    <span class="productPrice">$ <%# string.Format("{0}",Eval("priceSell"))%> </span><span class="product-Old-Price">$ <%# string.Format("{0}",Eval("priceSell"))%>
                                                    </span>
                                                </div>
                                                <div class="browseAddToCartContainer">
                                                    <form action="#" method="post" name="addtocart" class="addtocart_form">
                                                    <span class="quantity" style="display: block;">
                                                        <label for="quantity29" class="quantity_box">
                                                            Quantity:&nbsp;</label><input type="text" class="inputboxquantity" size="4" id="quantity29"
                                                                name="quantity[]" value="1">
                                                    </span>
                                                   <asp:Button ID="Button1" CssClass="addtocart_button" runat="server" Text="Add to Cart"
                                                                PostBackUrl="~/cart.aspx" />
                                                    </form>
                                                </div>
                                            </div>
                                            <div class="browseProductImageContainer">
                                                <a href="<%# this.ResolveUrl("~/detail.aspx?productID=" + String.Format("{0}",Eval("id")))%>">
                                                    <img src='<%#Eval("imageUrl")%>' height="333" width="220" class="browseProductImage"
                                                        title="Dip-dye strapless dress" alt="Dip-dye strapless dress" border="0"></a>
                                                <noscript>
                                                </noscript>
                                            </div>
                                            <div class="floatElement">
                                                <h2 class="browseProductTitle">
                                                    <a class="product_name" title="Dip-dye strapless dress" href="<%# this.ResolveUrl("~/detail.aspx?productID=" + String.Format("{0}",Eval("id")))%>">
                                                    <%#Eval("name")%>
                                                    </a><br />
                                                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("name2")%>' ForeColor="#990000"
                                                            Font-Bold="True"></asp:Label>
                                                </h2>
                                                <div class="browseProductDescription">
                                                    Lorem ipsum dolor sit amet, consectetur adipiscing elit
                                                </div>
                                                <div class="browseRatingContainer">
                                                    <span class="contentpagetitle">Average customer rating:</span>
                                                    <img src="./images/0.png" class="stars" align="top" border="0" alt="0 stars">&nbsp;
                                                    <strong>Total votes: 0</strong>
                                                </div>
                                                <div class="productDetailsContainer">
                                                    <a class="product_details" href="product.aspx" title="Product Details">
                                                    <asp:HyperLink ID="hplProductDetail" NavigateUrl='<%# this.ResolveUrl("~/detail.aspx?productID=" + String.Format("{0}",Eval("id")))%>' 
                                    runat="server" > Product Details</asp:HyperLink>
                                                    
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <br class="clr">
                                </ItemTemplate>
                                <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                            </asp:DataList>
                        </div>
                    </div>
                    <br class="clr" />
                    <!-- Product End-->
                </div>
                <br class="clr" />
                <!-- BEGIN PAGE NAVIGATION -->
                <div class="wrapper">
                    <div align="center" style="padding: 0px 5px 10px 0px;">
                        <asp:LinkButton ID="lbtnPrev" runat="server" Font-Bold="True" Font-Italic="True"
                            ForeColor="#FF6600" OnClick="lbtnPrev_Click"> Prev </asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="lbtnNext" runat="server" Font-Bold="True" Font-Italic="True"
                            ForeColor="#FF6600" OnClick="lbtnNext_Click"> Next</asp:LinkButton>
                    </div>
                </div>
                <!-- END PAGE NAVIGATION -->
            </div>
        </div>
    </div>
    </div>
</asp:Content>
